package com.smh.interfaces;

/**
 * @author shiminghui
 * @date 2025/2/18 20:01
 * @description: TODO
 */
public interface BlockingQueue<T> {
    // 入队
    public void offer(T value) throws InterruptedException;

    // 入队 超时
    public boolean offer(T value, long timeout) throws InterruptedException;

    // 出队
    public T poll() throws InterruptedException;

}
